let arr = [1,5,8,7]
let obj = {a: 'hello', b: 'world'}

let arrObj = {0:'a',1:'2',3:'3'}

for(let i in arr) {
  // console.log(arr[i]);
}

for(let i of arrObj) {
  console.log(i);
}